home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / Filezilla Server / FileZilla_Server-0_9_41.exe / source / interface / UsersListCtrl.h < prev    next >
C/C++ Source or Header  |  2011-11-06  |  4KB  |  97 lines

  1. // FileZilla Server - a Windows ftp server
  2.  
  3. // Copyright (C) 2002-2004 - Tim Kosse <tim.kosse@gmx.de>
  4.  
  5. // This program is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU General Public License
  7. // as published by the Free Software Foundation; either version 2
  8. // of the License, or (at your option) any later version.
  9.  
  10. // This program is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. // GNU General Public License for more details.
  14.  
  15. // You should have received a copy of the GNU General Public License
  16. // along with this program; if not, write to the Free Software
  17. // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  18.  
  19. #if !defined(AFX_USERSLISTCTRL_H__C939FF91_7A57_4E36_927B_00B917F6ECED__INCLUDED_)
  20. #define AFX_USERSLISTCTRL_H__C939FF91_7A57_4E36_927B_00B917F6ECED__INCLUDED_
  21.  
  22. #if _MSC_VER > 1000
  23. #pragma once
  24. #endif // _MSC_VER > 1000
  25. // UsersListCtrl.h : Header-Datei
  26. //
  27.  
  28. /////////////////////////////////////////////////////////////////////////////
  29. // Fenster CUsersListCtrl 
  30.  
  31. class CMainFrame;
  32. class CConnectionData;
  33. class CUsersListCtrl : public CListCtrl
  34. {
  35. // Konstruktion
  36. public:
  37.     CUsersListCtrl(CMainFrame *pOwner);
  38.     virtual ~CUsersListCtrl();
  39.  
  40. // Attribute
  41. public:
  42.  
  43. // Operationen
  44. public:
  45.     BOOL ParseUserControlCommand(unsigned char *pData, DWORD dwDataLength);
  46.     void SetDisplayPhysicalNames(bool showPhysical);
  47.     bool GetDisplayPhysicalNames() const { return m_showPhysical; }
  48.     void SetSortColumn(int sortColumn = -1, int sortDir = -1);
  49.     int GetSortColumn() const { return m_sortColumn; }
  50.     int GetSortDirection() const { return m_sortDir; }
  51.  
  52. // ▄berschreibungen
  53.     // Vom Klassen-Assistenten generierte virtuelle Funktionsⁿberschreibungen
  54.     //{{AFX_VIRTUAL(CUsersListCtrl)
  55.     //}}AFX_VIRTUAL
  56.  
  57. // Implementierung
  58. protected:
  59.     bool ProcessConnOp(unsigned char *pData, DWORD dwDataLength);
  60.     void QSortList(const unsigned int dir, int anf, int ende, int (*comp)(const CUsersListCtrl *pList, unsigned int index, const CConnectionData* refData));
  61.     static int CmpUserid(const CUsersListCtrl *pList, unsigned int index, const CConnectionData* refData);
  62.     static int CmpUser(const CUsersListCtrl *pList, unsigned int index, const CConnectionData* refData);
  63.     static int CmpIP(const CUsersListCtrl *pList, unsigned int index, const CConnectionData* refData);
  64.  
  65.     CImageList m_SortImg;
  66.     CImageList m_ImageList;
  67.     CMainFrame *m_pOwner;
  68.     bool m_showPhysical;
  69.     UINT_PTR m_nSpeedinfoTimer;
  70.     int m_sortColumn;
  71.     int m_sortDir;
  72.     std::map<int, CConnectionData*> m_connectionDataMap;
  73.     std::vector<CConnectionData*> m_connectionDataArray;
  74.  
  75.     // Generierte Nachrichtenzuordnungsfunktionen
  76. protected:
  77.     //{{AFX_MSG(CUsersListCtrl)
  78.     afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
  79.     afx_msg void OnContextmenuKick();
  80.     afx_msg void OnContextmenuBan();
  81.     afx_msg void OnContextMenu(CWnd* pWnd, CPoint point);
  82.     afx_msg void OnSize(UINT nType, int cx, int cy);
  83.     afx_msg void OnTimer(UINT_PTR nIDEvent);
  84.     afx_msg void OnGetdispinfo(NMHDR* pNMHDR, LRESULT* pResult);
  85.     afx_msg void OnColumnclick(NMHDR* pNMHDR, LRESULT* pResult);
  86.     //}}AFX_MSG
  87.  
  88.     DECLARE_MESSAGE_MAP()
  89. };
  90.  
  91. /////////////////////////////////////////////////////////////////////////////
  92.  
  93. //{{AFX_INSERT_LOCATION}}
  94. // Microsoft Visual C++ fⁿgt unmittelbar vor der vorhergehenden Zeile zusΣtzliche Deklarationen ein.
  95.  
  96. #endif // AFX_USERSLISTCTRL_H__C939FF91_7A57_4E36_927B_00B917F6ECED__INCLUDED_
  97.